from django.urls import path
from . import views, login

app_name = 'h5'  # 指定命名空间

urlpatterns = [
    path('userLogin/', login.user_login),
    path('get_info/', login.get_info),
    path('user_info/', views.renwu_info),
    path('zyjd_types/', views.get_zy_jd_types),

    path("bind_zb/",views.RW_ZB_View.as_view()),
    path("bind_jn/",views.RW_TYPEJN_View.as_view()),
    path("rwmb/", views.RW_MB_View.as_view()),
    path("skills/",views.RW_JN_View.as_view()),
    path("chs/",views.CH_View.as_view()),
    path('zbsq/', views.ApplyList.as_view(), name='zbsq_list'),
    path('zbsq/<pk>/', views.ApplyDetail.as_view(), name='zbsq_detail'),

    path('attrs/', views.AttrList.as_view(), name='attr_list'),
    path('attrs/<pk>/', views.AttrDetail.as_view(), name='attr_detail'),

    path('jinengs/', views.JinengList.as_view(), name='jineng_list'),
    path('jinengs/<pk>/', views.JinengDetail.as_view(), name='jineng_detail'),

    path('zhuangbeis/', views.ZhuangBeiList.as_view(), name='jineng_list'),
    path('zhuangbeis/<pk>/', views.ZhuangBeiDetail.as_view(), name='jineng_detail'),

    path('get_zb_types', views.get_zb_types, name='get_zb_types'),
    path('get_zb_types2', views.get_zb_types2, name='get_zb_types'),
    path('get_rwzb/', views.get_rwzb, name='get_rwzb'),
    # path('get_zb_by_type/<type_name>/', views.get_zb_by_type, name='get_zb_by_type'),

]
